package tt.love.hw.common.config;

import java.util.HashMap;
import java.util.Map;

public class FormBean {
    private String id;
    private Map<String, String> properties = new HashMap<String, String>();

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Map<String, String> getProperties() {
        return properties;
    }

    public void setProperties(Map<String, String> properties) {
        this.properties = properties;
    }

    public void addProperty(FormBeanProperty formBeanProperty){
         properties.put(formBeanProperty.getName(),formBeanProperty.getType());
    }

    @Override
    public String toString() {
        return "FormBean{" +
                "id='" + id + '\'' +
                ", properties=" + properties +
                '}';
    }
}
